package com.yijiu.action;

import com.yijiu.network.Action;
import com.yijiu.network.HttpEngine.KeyValue;

/**
 * 封装需要上传的数据，无参数
 * 
 * @author TangChao_Lenovo
 */
public class BaseAction extends Action
{
	public BaseAction(String securityKeyStr, String encriptDataStr)
	{
		super();
		// 密钥
		KeyValue securityKey = new KeyValue("securityKey", securityKeyStr);
		// 加密后的信息
		KeyValue encriptData = new KeyValue("encriptData", encriptDataStr);
		keyValue.add(securityKey);
		keyValue.add(encriptData);
	}
	public BaseAction(String securityKeyStr, String encriptDataStr, String appKey)
	{
		super();
		// 密钥
		KeyValue securityKey = new KeyValue("securityKey", securityKeyStr);
		// 加密后的信息
		KeyValue encriptData = new KeyValue("encriptData", encriptDataStr);
		//
		KeyValue appKeyFromServer = new KeyValue("appKey", appKey);
		keyValue.add(securityKey);
		keyValue.add(encriptData);
		keyValue.add(appKeyFromServer);
	}
	@Override
	public String getAddress()
	{
		return "";
	}
}
